package com.czk.service;

import com.czk.domain.User;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.elasticsearch.repository.ElasticsearchRepository;

/**
 * @Author:ChenZhangKun
 * @Date: 2021/4/26 10:51
 */
public interface UserRepository extends ElasticsearchRepository<User, String> {
    /**
     * 通过名称查询
     *
     * @param name
     * @param pageable
     * @return
     */
    Page<User> findByName(String name, Pageable pageable);
}
